﻿using System.Text.Json.Serialization;

namespace ORS.OrderRobot.ServiceContracts.Dtos.Api
{
    /// <summary>
    /// 登录返回的信息
    /// </summary>
	public class LoginResultInfo
	{
		/// <summary>
		/// 邮箱
		/// </summary>
		public string Email { get; set; }
        /// <summary>
        /// 登录凭证
        /// </summary>
        public string Token { get;set;}
        /// <summary>
        /// 客户id
        /// </summary>
        [JsonPropertyName("customer_id")]
        public string CustomerId { get; set; }
        /// <summary>
        /// 客户编号
        /// </summary>
        [JsonPropertyName("customer_no")]
        public string CustomerNo { get; set; }
        /// <summary>
        /// 中文名的拼音
        /// </summary>
        [JsonPropertyName("first_name")]
        public string FirstName {get;set;}
        /// <summary>
        /// 中文姓的拼音
        /// </summary>
        [JsonPropertyName("last_name")]
        public string LastName {get;set;}
        /// <summary>
        /// 生日
        /// </summary>
        public string Birthday { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [JsonPropertyName("phone_mobile")]
        public string PhoneMobile {get;set;}
        /// <summary>
        /// 手机号前缀
        /// </summary>
        [JsonPropertyName("c_phonePrefix")]
        public string CPhonePrefix { get;set;}
        /// <summary>
        /// 上次登录时间(utc时间)
        /// </summary>
        [JsonPropertyName("last_login_time")]
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 上次资料修改时间(utc时间)
        /// </summary>
        [JsonPropertyName("last_modified")]
        public DateTime? LastModified { get; set; }
        [JsonIgnore]
        /// <summary>
        /// 购物车编号(由购物车接口返回)
        /// </summary>
        public string BasketId { get; set; }
    }
}

